package com.rytx.system.service;

import java.util.List;
import java.util.Map;

import com.rytx.common.core.domain.AjaxResult;
import com.rytx.system.domain.vo.CartArtOrder;
import com.rytx.system.domain.ysp.ArtOrder;
import com.rytx.system.domain.ysp.ArtRental;
import com.rytx.system.domain.ysp.ArtServiceCharge;

/**
 * 艺术订单信息Service接口
 *
 * @author rytx
 * &#064;date  2024-05-12
 */
public interface IArtOrderService
{
    /**
     * 查询艺术订单信息
     *
     * @param id 艺术订单信息主键
     * @return 艺术订单信息
     */
    public ArtOrder selectArtOrderById(Long id);
    public ArtOrder selectArtOrderByParam(ArtOrder artOrder);
    public List<ArtOrder> selectArtOrderOverdue(ArtOrder artOrder);
    public String createOrder(ArtOrder order);
    /**
     * 查询艺术订单信息列表
     *
     * @param artOrder 艺术订单信息
     * @return 艺术订单信息集合
     */
    public List<ArtOrder> selectArtOrderList(ArtOrder artOrder);
    public List<ArtOrder> selectArtOrderListByUserId(Long userId);
    /**
     * 新增艺术订单信息
     *
     * @param artOrder 艺术订单信息
     * @return 结果
     */
    public int insertArtOrder(ArtOrder artOrder);

    /**
     * 修改艺术订单信息
     *
     * @param artOrder 艺术订单信息
     * @return 结果
     */
    public int updateArtOrder(ArtOrder artOrder);

    /**
     * 批量删除艺术订单信息
     *
     * @param ids 需要删除的艺术订单信息主键集合
     * @return 结果
     */
    public int deleteArtOrderByIds(Long[] ids);

    /**
     * 删除艺术订单信息信息
     *
     * @param id 艺术订单信息主键
     * @return 结果
     */
    public int deleteArtOrderById(Long id);

    AjaxResult callbackZmOrder(String message);

    AjaxResult completeZmOrder(ArtOrder order);

    AjaxResult refundZmOrder(ArtOrder order);

    AjaxResult refundZmOrderOperate(ArtOrder order);

    public boolean zmChargebacks(ArtOrder artOrder);

    public boolean zmCancel(ArtOrder artOrder);

    public boolean zmnfreeze(ArtOrder artOrder);

    public String zmnDetail(ArtOrder artOrder);

    public boolean zmnRefund(ArtOrder artOrder);

    public boolean zmnRefundStatus(ArtOrder order);

    public void zmnRefundTask();

    public void sendSmsTask();

    public void serviceChargeTask();

    public void autoNotReturnedTask();

    public void serviceChargeUtil(ArtServiceCharge artServiceCharge);

    /**
     * 查看订单详情
     * @param id
     * @return
     */
    public ArtOrder orderdetails(Long id);
    /**
     * 租赁订单往期列表查询（第二级）
     * @param artOrder
     * @return
     */
    public List<ArtOrder> orderTwoList(ArtOrder artOrder);

    String buyOrder(ArtOrder order);
    String cartByOrder(CartArtOrder orders,Long userId,String payType,String ip);
    AjaxResult refundZFBBuyOrderOperate(ArtOrder order);

    AjaxResult refundZFBOrderOperate(ArtOrder order);

    AjaxResult manualLeaseRenewal(ArtOrder order);

    AjaxResult maiduan(ArtOrder order);

    AjaxResult manualMaiduan(ArtOrder order);

    public void autoLeaseRenewalTask();

    public void autoConfirmReceiptTask();

    public void unfreezeRecoveryOrderTask();

    AjaxResult confirmReceipt(ArtOrder order);

    ArtOrder getOrderByNu(String nu, String com);

    int updateArtOrderSignDate(ArtOrder update);

    List<ArtOrder> appSelectArtOrderList(ArtOrder artOrder);

    ArtOrder getOrderByOrderNo(String platOrderNo);

    Long appSelectChildOrderCount(String orderNo);

    ArtOrder assemblyLeaseMainOrder(ArtOrder order);

    int updateByOrderNo(ArtOrder artOrder);

    boolean zmChargebacksCPAM(String compensationAmount, ArtOrder artOrder);

    boolean afterCompleteZmOrder(ArtOrder artOrder);

    AjaxResult cancelLeaseRenewal(ArtOrder order);

    AjaxResult manualCompleteZmOrder(ArtOrder order);

    public boolean zmnClose(ArtOrder order);

    public boolean afterZmnRefund(String orderNo);
    public String getRest_amount(String orderNo);

    Map<String, Integer> getWeekArtCount();

    Map<String, Integer> getMonthArtCount();

    Map<String, Integer> getYearArtCount();
    List<ArtOrder> appCarouselList();

    /**
     * 追缴订单创建支付宝trade_no
     * @param artOrder
     * @return
     */
    public String getRecoveryOrderTradeNo(ArtOrder artOrder);
    void takComplete(String orderNo);

    List<ArtOrder> appRecoveryList(ArtOrder artOrder);

    AjaxResult manualProcessing(ArtOrder order);

    List<ArtOrder> deliveryList(ArtOrder artOrder);

    List<ArtOrder> recoveryList(ArtOrder artOrder);

    String createLeaseBuyOrder(ArtOrder order);

    /**
     * 首期扣款定时任务
     */
    void firstPaymentTask();
}
